package com.leetcode.merci.lc110;

/**
 * Created by bowen on 2017/7/23.
 */
import com.leetcode.merci.TreeNode;

/**
 * Created by bowen on 2017/7/23.
 */
public class Test {

    public static TreeNode makeQuestion(){
        TreeNode root =new TreeNode(5);
        TreeNode node = root;
        node.right=new TreeNode(7);
        node.right.right=new TreeNode(2);
        node.right.right.right=new TreeNode(9);
//        node.left=new TreeNode(4);
//        node.left.left=new TreeNode(3);
//        node.left.left.left=new TreeNode(-1);
        return root;
    }
    public static void main(String[] args) {
        TreeNode root=makeQuestion();
        Solution solution=new Solution();
        boolean result = solution.isBalanced(root);
        System.out.println(result);
    }
}